/*清除浮动*/
.clearfix:after {
    content: '';
    display: block;
    clear: both;
    height: 0;
}

/*版心*/
.container {
    width: 1200px;
    margin: 0 auto;

}

// 页面底色
body {
    background-color: #F6F6F6;
}

/*顶部*/
#header {
    height: 160px;
    background-color: white;

    .logo {
        float: left;
        width: 225px;
        height: 75px;
        margin-top: 50px;
        margin-left: 20px;

        img {
            float: left;
            width: 75px;
            height: 75px;
            vertical-align: middle;
        }

        .pagename {
            width: 135px;
            float: left;
            margin-left: 15px;
            text-align: center;
            margin-top: 6px;

            h1 {
                font-size: 28px;
                font-weight: bold;
                line-height: 40px;
            }

            .pinyin {
                display: inline-block;
                font-size: 12px;
                line-height: 17px;
                transform: scale(.8);
                // margin-left: -14px;
            }
        }
    }

    form {
        float: left;
        width: 532px;
        height: 48px;
        margin-top: 50px;
        margin-left: 110px;
        position: relative;

        .searchDiv {
            width: 532px;
            height: 44px;
            background: url(../static/images/search.png) no-repeat center left 15px/20px 20px;
            border: 3px solid #000;
            border-radius: 24px;
        }

        input {
            width: 355px;
            height: 42px;
            font-size: 16px;
            border: 0 solid #000;
            position: absolute;
            top: 3px;
            left: 50px;

            &:focus {
                outline: 0 solid #000;
                background: none;
            }
        }

        .sbtn {
            width: 124px;
            height: 40px;
            font-size: 14px;
            line-height: 40px;
            text-align: center;
            border-radius: 20px;
            background-color: #FEE44E;
            position: absolute;
            top: 5px;
            right: -2px;
            cursor: pointer;
        }
    }

    .promise {
        float: right;
        width: 268px;

        .promiseItem {
            float: left;
            font-size: 12px;
            line-height: 18px;
            margin-right: 25px;
            margin-top: 43px;

            img {
                width: 40px;
                height: 40px;
            }
        }
    }
}

/*导航栏*/
#nav {
    height: 46px;
    background-color: #43240C;

    ul li {
        width: 166px;
        height: 46px;
        float: left;
        line-height: 46px;
        text-align: center;
        cursor: pointer;
        cursor: hander;

        a {
            color: white;
            font-size: 16px;
        }

        &:hover {
            background-color: #FEE44E;

            a {
                color: black;
            }
        }
    }

    ul li:first-child {
        width: 220px;
    }

    .active {
        background-color: #FEE44E;

        a {
            color: black;
        }
    }
}
/*用户信息*/ 
#user{
    .container{
        height: 60px;
        text-align: right;
        font-size: 14px;
        line-height: 50px;
    }
    img{
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .backLogin{
        border: 1px solid gray;
        border-radius: 2px;
        cursor: pointer;
        display: inline-block;
        margin-left: 10px;
        width: 68px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        background-color: lightgray;
        
    }

}

/*购物车的商品列表*/
#shopCar{
    table{
        width: 900px;
        margin: auto;
        border-collapse: collapse;
        border-spacing: 0;
        margin-bottom: 10px;

        tr{
            width: 900px;

            border-bottom: 1px dashed gray;
            th,td{
                width: 128px;
                height: 120px;
                text-align: center;
                line-height: 120px;

                span{
                    color: blue;
                    cursor: pointer;
                }
            }
            th{
                height: 50px;
                line-height: 50px;
            }
            input[type="text"]{
                width: 30px;
                text-align: center;
            }
        }
        .shopname{
            // border: 1px solid #000;
            width: 130px;
            font-size: 14px;
            font-weight: bold;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow:hidden;
        }
    }

    img{
        width: 100px;
        height: 100px;
    }

    .totlePrice{
        font-size: 18px;
        font-weight: bold;
        margin: 0 0 20px 950px;
        color: red;
    }
}



/*返回顶部*/
#backTop {
    width: 60px;
    height: 60px;
    position: fixed;
    top: 50%;
    right: 50px;
    cursor: pointer;

    img {
        width: 60px;
        height: 60px;
    }
}


/*页脚*/
#footer {
    height: 240px;
    background-color: #484848;
    color: white;

    .logoApp {
        img {
            width: 112px;
            height: 112px;
            float: left;
            margin: 37px 20px 0 40px;
        }

        .fontDesc {
            float: left;
            margin-top: 45px;

            h2 {
                font-size: 36px;
                font-weight: bold;
                line-height: 45px;
            }

            p {
                font-size: 18px;
                line-height: 25px;
                margin-left: 10px;
            }
        }

        a {
            font-size: 20px;
            color: white;
            display: inline-block;
            margin: 87px 0 0 190px;
        }
    }

    .copyReg {
        font-size: 18px;
        text-align: center;
        margin-top: 60px;

        img {
            width: 22px;
            height: 22px;
        }
    }
}

/*全国安全可信网站*/
#safe {
    height: 80px;

    a {
        width: 83px;
        height: 30px;
        display: block;
        margin: 5px auto;

        img {
            width: 83px;
            height: 30px;

        }
    }
}